package com.wnx.job.modules.jms.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author by wangnaixing
 * @Description
 * @Date 2021/12/18 14:36
 */
@Data
public class ProfessionParam implements Serializable {

    /**
     * 自增主键
     */
    @ApiModelProperty(value = "自增主键")
    private Long id;

    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID")
    @NotNull(message = "专业父ID不能为空")
    private Long parentId;

    /**
     * 专业名
     */
    @ApiModelProperty(value = "专业名")
    @NotBlank(message = "专业名不能为空")
    private String name;





    /**
     * 附件属性
     */
    private List<ProfessionParam> children = new ArrayList<>();;

}
